// messaging.js
// Route messages to different components of the extension

(chrome.extension.onMessage || chrome.extension.onRequest).addListener(
function(message, sender, sendResponse)
{
	if(message.name && message.name == "getOptions")
		onOptionsMessage(message, sender, sendResponse);
	else if(message.name == "updateSubscription")
		onSubscriptionMessage(message, sender, sendResponse);
});

